package mms.farina.thecell.messages;

import java.io.Serializable;

/**Classe per la gestione dei messaggi semplici*/
public class SimpleMessage implements Serializable{


	private static final long serialVersionUID = 7477840277850558757L;
	/**Campi del messaggio*/
	private String type=""; /**Tipo del messaggio*/
	private String sender_nick="";/**Nickname del mittente*/
	private String sender_ip=""; /**IP del mittente*/
	private int sender_port=0; /**Porta del mittente*/
	
	
	public SimpleMessage() {
		
	}

	public SimpleMessage(String type) {
		this.setType(type);
	}
	
	public SimpleMessage(String type, String nick) {
		this.setType(type);
		this.setSender_nick(nick);
	}
	
	public SimpleMessage(String type, String ip, int port) {
		this.setType(type);
		this.setSender_ip(ip);
		this.setSender_port(port);
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}


	public String getSender_nick() {
		return sender_nick;
	}

	public void setSender_nick(String sender_nick) {
		this.sender_nick = sender_nick;
	}

	public String getSender_ip() {
		return sender_ip;
	}

	public void setSender_ip(String sender_ip) {
		this.sender_ip = sender_ip;
	}

	public int getSender_port() {
		return sender_port;
	}

	public void setSender_port(int sender_port) {
		this.sender_port = sender_port;
	}


}
